package com.ruoyi.qd.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 机器人队列对象 qd_robot_queue
 * 
 * @author tushiguang
 * @date 2024-07-25
 */
@Accessors(chain = true)
@Data(staticConstructor = "create")
@EqualsAndHashCode(callSuper = true)
@Table("qd_robot_queue")
public class RobotQueue extends BaseEntity<RobotQueue> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType= KeyType.Auto)
    private Long id;

    /**
     * 机器人id
     */
    @Excel(name = "机器人id")
    private Long robotId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private Long orderId;

    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date appointmentTime;

    /**
     * 叫号时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "叫号时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date callTime;

    /**
     * @see com.ruoyi.qd.enums.RobotQueueStatusEnum
     */
    @Excel(name = "队列状态", readConverterExp = "1=待签到,2=已完成,3=已过期")
    private String status;

}
